import API from './../api'

export default {
    namespace: "menuChange",

    state: {
        menuVal: ''
    },

    effects: {
        *setVal({ payload }, { put }) {

            // 权限用户名存到redux
            yield put({ type: "save", payload });
        },
    },

    reducers: {
        save(state, action) {
            return { ...state, ...action.payload };
        },
    },
};
